﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;

namespace Devsoft.DB.Models
{
    public interface IModel
    {
        bool HasPrimaryField();
        TResult GetPrimaryValue<TResult>();
        void Save();
        void Delete();
        void Remove();
        void Insert(bool forceInsert = false);
        bool Update(bool forceUpdate = false);
        void InsertOrUpdate();
    }
}
